/* SGATOR
 * gen.h
 */

#ifndef SGMISC_H
#define SGMISC_H

#include "base/types.h"

/* sample, frequency, delta[0;1.0], phase */
SgFloat sg_sinusoide(SgULong s, SgFloat f, SgFloat p);
SgFloat sg_saw(SgULong s, SgFloat f, SgFloat d, SgFloat p);
SgFloat sg_rect(SgULong s, SgFloat f, SgFloat d, SgFloat p);
SgFloat sg_harmos(SgULong s, SgFloat f, SgFloat p, SgInt n);
SgFloat sg_fm(SgULong s, SgFloat f1, SgFloat f2, SgFloat i);
SgFloat sg_noise();

#endif

/* end */

